<?
	class Index extends CI_Controller
	{
		function __construct()
		{
			parent::__construct();
		}
	
		function index()
		{
			$this->load->library('session');
			$username = $this->session->userdata('username');
			$data=array('title'=>$this->config->item('title'));
			if($username=""||$username==null)
			{
				header('Location:'.site_url('admin/login'));
			}
			else 
			{
				$this->load->view('admin/index',$data);
			}
		}
	}
?>
